package sshj.process.adapter;

import sshj.process.bean.InspurSSHDirectoryBean;
import sshj.process.bean.InspurSSHServerBean;

import java.util.List;

/**
 * 系统适配器接口，适配不同的操作系统
 */
public interface InspurSSHAdapter {
    boolean testConnect(InspurSSHServerBean server);

    String executeCmd(String cmd);

    String getGlibCVersion();

    String getOSVersion();

    List<InspurSSHDirectoryBean> listDir(InspurSSHServerBean server, String path);

    String getMd5(InspurSSHServerBean server, String filePath);

    boolean checkIfFileExist(InspurSSHServerBean server, String filePath);

    boolean checkIfFileSame(InspurSSHServerBean server, String originalFilePath, String destFilePath);

}
